#ifndef QLOGVIEW_H
#define QLOGVIEW_H

#include "../../libs/device/qbasedefine.h"

#include <QWidget>
#include <QProgressDialog>

class QDeviceManager;

class QLogDatabaseView;

class QLogView : public QWidget
{
    Q_OBJECT
public:
    explicit QLogView(tagDeviceInfo* info,QWidget *parent = 0);
    
signals:
    
protected slots:
    void    load_log();

    void    database_count(int count);
    void    database_end();
    void    database_error(const QString &error);
    void    database_next();
protected:
    QLogDatabaseView    *m_log_view;
    tagDeviceInfo       m_device_info;
    QDeviceManager  *m_device_manager;
    QProgressDialog *m_progress_dialog;
};

#endif // QLOGVIEW_H
